#include <stdio.h>
#include <stdint.h>

typedef void (*callback_func)(int argc, char **argv);

void mycallback(int argc, char **argv) {
    printf("argc=%d\n", argc);
    for (int i = 0; i < argc; ++i) {
        printf("%s ", argv[i]);
    }
    printf("\n");
}

void test01() {
    char *argv[2] = {"hello", "world"};

    callback_func cb = mycallback;

    cb(2, argv);
}

int main(int argc, char **argv) {
    test01();
    return 0;
}